package com.qdc.datacenters.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdc.datacenters.domain.query.chatmsg.ChatMsgListQuery;
import com.qdc.datacenters.domain.query.chatmsg.ChatMsgQuery;
import com.qdc.datacenters.domain.vo.chatmsg.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.qdc.datacenters.domain.entity.ChatContactMsg;

import java.util.List;

/**
 * 会话消息(ChatContactMsg)表数据库访问层
 *
 * @author danmo
 * @since 2024-02-28 17:24:22
 */
@Repository()
@Mapper
public interface ChatContactMsgMapper extends BaseMapper<ChatContactMsg> {


    List<ChatMsgExCustomerVo> getExternalCustomerList(ChatMsgListQuery query);

    List<ChatMsgInCustomerVo> getInternalCustomerList(ChatMsgListQuery query);

    List<ChatMsgGroupVo> getExternalGroupList(ChatMsgListQuery query);

    List<ChatMsgGroupVo> getInternalGroupList(ChatMsgListQuery query);

    List<ChatMsgCustomerUserVo> getCustomerUserList(ChatMsgListQuery query);

    List<ChatContactMsgVo> getChatMsgList(ChatMsgQuery query);
}

